﻿using System;

namespace UnitManager
{
	public class UnitConversion
	{
		public static double mmToFeet(double dMM)
		{
			return dMM / 304.8;
		}

		public static double feetToMM(double dFeet)
		{
			return dFeet * 304.8;
		}

		public static double mmToIn(double dMM)
		{
			return dMM / 25.4;
		}

		public static double inToMM(double dFeet)
		{
			return dFeet * 25.4;
		}

		private const double m_dUnitFt = 304.8;

		private const double m_dUnitIn = 25.4;
	}
}
